package com.chixing.day10.ExpectionsDemo;

public class ExceptionTest {
    public static void main(String[] args) throws BalancdNotEnoughException {
        BankDEMO ban = new BankDEMO();
        ban.setAccBalance(1000);
        ban.withdraw(100000);

        BankDEMO ban1 = new BankDEMO();
        ban1.setAccBalance(100);
        ban.transfer(10000,ban1);
        System.out.println(ban.getAccBalance());
        System.out.println(ban1.getAccBalance());
    }
}
